package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//添加日志注解
@Slf4j
@SpringBootApplication
//添加注解,扫描过滤器
@ServletComponentScan
@EnableTransactionManagement
//加入缓存注解
@EnableCaching
public class SpringBootReggierApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringBootReggierApplication.class, args);
//        System.out.println("reggie项目启动成功...");
//        输出日志
        log.info("reggie项目启动成功...");

    }

}
